package com.lp.biz.message.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @program: backend
 * @description: 收益提醒
 * @author Ke.Song
 * @since 2024-04-27 14:52:05
 */
@Data
@TableName("biz_message_income")
public class BizMessageIncome implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户id
     */
    private Integer memberId;

    /**
     * 消息类型，1: 收益, 2: 提现
     */
    @TableField("`category`")
    private Integer category;

    /**
     * 类型，1：现金奖励
     */
    @TableField("`type`")
    private Integer type;

    /**
     * 来源, 0: 会员, 1: 共读会, 2: 训练营，3：课程
     */
    @TableField("`source`")
    private Integer source;

    /**
     * 金额
     */
    private Integer isView;

    /**
     * 金额
     */
    private BigDecimal amount;

    /**
     * 创建时间
     */
    private LocalDateTime createAt;


}
